package com.base.sms.service;

import java.util.List;

import com.base.common.persistent.model.Sms;

/**
 * 消息Service
 * 
 * @author Kevin Colin
 * @datetime 2015年8月14日下午3:21:50
 * 
 */
public interface SmsService {

	/**
	 * 条件查询消息
	 * 
	 * @param id
	 * @param employeeId
	 * @param userId
	 * @param page
	 * @param
	 * @return
	 */
	public List<Sms> getSmsByFuzzyCondition(int bid, int categories,
			String code, int status, int page);

	/**
	 * 条件查询消息条件
	 * 
	 * @param id
	 * @param employeeId
	 * @param userId
	 * @param
	 * @return
	 */
	public int getSmsCountsByFuzzyCondition(int bid, int categories,
			String code, int status);

	/**
	 * 更新消息阅读状态
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int updateReadTimeStatusByReportId(String[] reportIds);

	/**
	 * 删除短消息
	 * 
	 * @param smsReportIds
	 * @return
	 */
	public int deleteSms(String smsReportIds);

	/**
	 * 给他人发送消息
	 * 
	 * @param string2Obejct
	 * @param compoundsId
	 * @param mess
	 * @return
	 * @throws Exception
	 */
	public int sendSmsToOther(List<Integer> employeeIds, String mess)
			throws Exception;

	/**
	 * 个人消息回复
	 * 
	 * @param list
	 * @param smsId
	 * @param mess
	 * @return
	 * @throws Exception
	 */
	public int replySms(List<Integer> employeeIds, int smsId, String mess)
			throws Exception;
}
